package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

@TableName("t_order")
public class OrderBean implements Serializable {
    @TableId(value = "pk_orderId",type = IdType.AUTO)
    private Integer orderId;
    @TableField("o_userName")
    private String userName;
    @TableField("pk_mtTicketId")
    private Integer mtTickerId;
    @TableField("t_movieName")
    private String movieName;
    @TableField("t_price")
    private Integer price;
    @TableField("o_status")
    private String status="未支付";


    public OrderBean() {
    }

    public OrderBean(String userName, Integer mtTickerId, String movieName, Integer price) {
        this.userName = userName;
        this.mtTickerId = mtTickerId;
        this.movieName = movieName;
        this.price = price;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getMtTickerId() {
        return mtTickerId;
    }

    public void setMtTickerId(Integer mtTickerId) {
        this.mtTickerId = mtTickerId;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "OrderBean{" +
                "orderId=" + orderId +
                ", userName='" + userName + '\'' +
                ", mtTickerId=" + mtTickerId +
                ", movieName='" + movieName + '\'' +
                ", price=" + price +
                ", status='" + status + '\'' +
                '}';
    }
}
